<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东的分类菜单</title>
    <style>
        /* 清除默认样式 */
        *{
            margin: 0;
            padding: 0;
        }

        ul{
            list-style: none ;
        }

        /* 设置背景颜色 */
        body{
            background-color: silver;
        }

        /* 设置ul的样式 */
        .menu{
            width: 190px;
            height: 450px;
            padding: 10px 0;


background-color: #fff;
margin: 100px auto;
        }

        /* 设置菜单项的样式 */
        .menu li{
            /* 设置高度 */
            height: 25px;
            /* 
                如果希望单行文字在元素中垂直居中，
                    只需要将行高和元素的高度设置为相同的值即可
            */
            line-height: 25px;
            padding-left: 18px;

/* background-color: tomato; */
        }

        /* 设置li鼠标移入后的效果 */
        .menu li:hover{
            background-color: #d9d9d9;
        }

        /* 设置文字的样式 */
        .menu a{
            /* 去除下划线 */
            text-decoration: none;
            /* 修改文字的颜色 */
            color: #333;
            /* 设置字体大小 */
            font-size: 14px;
        }

        .menu a:hover{
            color: #c81623;
        }

        /* 设置菜单中分隔符的样式 */
        .menu .line{
            font-size: 12px;
            color: #636363;
            /* 设置一个左右的边距 */
            margin: 0 2px;
        }

    </style>
</head>
<body>
    <!-- 
        创建一个外部的容器nav，用来声明语义，表示这里创建的是一个导航菜单
     -->
    <nav>
        <!-- 创建一个ul用来表示整个菜单 -->
        <ul class="menu">
            <!-- 菜单里每一个选项都是一个li -->
            <li>
                <a href="#">家用电器</a>
            </li>

            <li>
                <a href="#">手机</a><span class="line">/</span><a href="#">运营商</a><span class="line">/</span><a href="#">数码</a>
            </li>

            <li>
                <a href="#">电脑</a><span class="line">/</span><a href="#">办公</a>
            </li>

            <li>
                <a href="#">家居</a><span class="line">/</span><a href="#">家具</a><span class="line">/</span><a href="#">家装</a><span class="line">/</span><a href="#">厨具</a>
            </li>
            <li>
                <a href="#">男装</a><span class="line">/</span><a href="#">女装</a><span class="line">/</span><a href="#">童装</a><span class="line">/</span><a href="#">内衣</a>
            </li>
            <li>
                <a href="#">美妆</a><span class="line">/</span><a href="#">个护清洁</a><span class="line">/</span><a href="#">宠物</a>
            </li>
            <li>
                <a href="#">女鞋</a><span class="line">/</span><a href="#">箱包</a><span class="line">/</span><a href="#">钟表</a><span class="line">/</span><a href="#">珠宝</a>
            </li>
            <li>
                <a href="#">男鞋</a><span class="line">/</span><a href="#">运动</a><span class="line">/</span><a href="#">户外</a>
            </li>
            <li>
                <a href="#">房产</a><span class="line">/</span><a href="#">汽车</a><span class="line">/</span><a href="#">汽车用品</a>
            </li>
            <li>
                <a href="#">母婴</a><span class="line">/</span><a href="#">玩具乐器</a>
            </li>
            <li>
                <a href="#">食品</a><span class="line">/</span><a href="#">酒类</a><span class="line">/</span><a href="#">生鲜</a><span class="line">/</span><a href="#">特产</a>
            </li>
            <li>
                <a href="#">艺术</a><span class="line">/</span><a href="#">礼品鲜花</a><span class="line">/</span><a href="#">农资绿植</a>
            </li>
            <li>
                <a href="#">医疗保健</a><span class="line">/</span><a href="#">计生情趣</a>
            </li>
            <li>
                <a href="#">图书</a><span class="line">/</span><a href="#">文娱</a><span class="line">/</span><a href="#">教育</a><span class="line">/</span><a href="#">电子书</a>
            </li>
            <li>
                <a href="#">机票</a><span class="line">/</span><a href="#">酒店</a><span class="line">/</span><a href="#">旅游</a><span class="line">/</span><a href="#">生活</a>
            </li>
            <li>
                <a href="#">理财</a><span class="line">/</span><a href="#">众筹</a><span class="line">/</span><a href="#">白条</a><span class="line">/</span><a href="#">保险</a>
            </li>
            <li>
                <a href="#">安装</a><span class="line">/</span><a href="#">维修</a><span class="line">/</span><a href="#">清洗</a><span class="line">/</span><a href="#">二手</a>
            </li>
            <li>
                <a href="#">工业品</a>
            </li>
        </ul>
    </nav>
    
</body>
</html>